package com.jiao.testdemo.pattern.interpreter;

import java.util.Map;

/**
 * TODO(文件概要)
 *
 * <p> TODO(具体描述信息,可以不填)
 *
 * @author meetsocial
 * @version V1.0
 * @className: NumberExpression
 * @date 2024/11/15 11:10
 */
public class NumberExpression implements Expression{

    private int number;

    public NumberExpression(int number) {
        this.number = number;
    }

    @Override
    public int interpret(Map<String, Integer> context) {
        return number;
    }

}
